package com.ruoyi.system.service;

import java.text.ParseException;
import java.util.List;
import com.ruoyi.system.domain.YgabcBorrow;

/**
 * ygabc_borrowService接口
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
public interface IYgabcBorrowService 
{
    /**
     * 查询ygabc_borrow
     * 
     * @param id ygabc_borrow主键
     * @return ygabc_borrow
     */
    public YgabcBorrow selectYgabcBorrowById(String id);
    /**
     * 查询ygabc_borrow
     *
     * @param userId ygabc_borrow主键
     * @return ygabc_borrow
     */
    public List<YgabcBorrow> selectYgabcBorrowByuserId(String userId);
    /**
     * 查询ygabc_borrow
     *
     * @param name ygabc_borrow主键
     * @return ygabc_borrow
     */
    public YgabcBorrow selectYgabcBorrowByName(String name);
    public YgabcBorrow selectYgabcBorrowByuserName(String username);

    /**
     * 查询ygabc_borrow列表
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return ygabc_borrow集合
     */
    public List<YgabcBorrow> selectYgabcBorrowList(YgabcBorrow ygabcBorrow);

    /**
     * 新增ygabc_borrow
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return 结果
     */
    public int insertYgabcBorrow(YgabcBorrow ygabcBorrow);

    /**
     * 修改ygabc_borrow
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return 结果
     */
    public int updateYgabcBorrow(YgabcBorrow ygabcBorrow);

    /**
     * 批量删除ygabc_borrow
     * 
     * @param ids 需要删除的ygabc_borrow主键集合
     * @return 结果
     */
    public int deleteYgabcBorrowByIds(String[] ids);

    /**
     * 删除ygabc_borrow信息
     * 
     * @param id ygabc_borrow主键
     * @return 结果
     */
    public int deleteYgabcBorrowById(String id);

    /**
     * 修改ygabc_borrow中status
     */
    public void updateYgabcBorrowStatus() throws ParseException;
}
